package com.hkd.cya.适配器模式;

import com.hkd.cya.PersonSingleton;

public class Test {
    public static void main(String[] args) {
        System.out.println("*****第1次调用单例创建实例****");
        PersonSingleton person1=PersonSingleton.getlns();
        System.out.println("******第2次调用单例创建实例******");
        PersonSingleton person2=PersonSingleton.getlns();
        System.out.println("判断2次是否相等？");
        System.out.println(person1.equals(person2));
    }
}
